import pexpect
import time
import Server 





child = pexpect.spawn("python server.py")
print(child)
# Server.Run()
res = child.expect("Enter PEM pass phrase:")
print("检查匹配结果",res)
time.sleep(2)
child.sendline("python server.py")
print("输入密码")
time.sleep(2)


time.sleep(2)
child.sendline("123456")